#pragma once
#include<iostream>
#include"Protocol.hpp"
#include"Log.hpp"


class Task {
    private:
        int _sock;
        CallBack _callBack;
    public:
        Task() = default;
        Task(int sock) :_sock(sock) {

        }
        void TaskHander() {
             LOG(INFO, "CallBack begin");
             _callBack(_sock);
             LOG(INFO, "CallBack end");
        }
        ~Task() {}
};
